<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // true 输出问号后面的第一段语句
        // false 输出问号后面的第二段语句
        var a = (4>5)?"4大于5":"4小于5";
        console.log(a)
    </script>
</body>
</html>